package com.tckdq.tcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2022-08-26
 */
@TableName("t_course_recommend")
public class CourseRecommend extends Model<CourseRecommend> {
    //被推荐课程
    public static final Object STAUS_ISRECOMMEND = 1;
    //未被推荐课程
    public static final Object STAUS_UNRECOMMEND = 0;
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("course_id")
    private Long courseId;
    /**
     * 0是没有推荐,1是推荐
     */
    @TableField("recom_state")
    private Long recomState;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getRecomState() {
        return recomState;
    }

    public void setRecomState(Long recomState) {
        this.recomState = recomState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CourseRecommend{" +
        ", id=" + id +
        ", courseId=" + courseId +
        ", recomState=" + recomState +
        "}";
    }
}
